package com.jie.service.impl;

import com.jie.dao.UserDao;
import com.jie.dao.impl.UserDaoImpl;
import com.jie.entity.User;
import com.jie.service.UserService;

import java.util.List;

/**
 * Created by 12904 on 2018/8/14.
 */
public class UserServiceImpl implements UserService
{
    @Override
    public List<User> findUser(int uid)
    {
        UserDao dao = new UserDaoImpl();
        return dao.findUser(uid);
    }

    @Override
    public int delUser(int uid)
    {
        UserDao dao = new UserDaoImpl();
        return dao.delUser(uid);
    }

    @Override
    public int login(String uname, String upassword)
    {
        UserDao dao = new UserDaoImpl();
        return dao.login(uname,upassword);
    }
}
